package com.tic.robot.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.tic.robot.R;
import com.tic.robot.base.BaseTitleActivity;

public class ControlerActivity extends BaseTitleActivity {

    @Override
    protected int getContentLayout() {
        return R.layout.activity_controler;
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setTitle(getString(R.string.control_title));

        initView();
    }

    private void initView() {
        findViewById(R.id.layout_football).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(ControlerActivity.this, FootballControlerActivity.class));
            }
        });

        findViewById(R.id.layout_fighter).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(ControlerActivity.this, FighterControlerActivity.class));
            }
        });
    }
}
